package com.xnyzc.lhy.didi.mapper.order;

        import com.baomidou.mybatisplus.core.mapper.BaseMapper;
        import com.xnyzc.lhy.didi.entity.order.OaCOrderPersonal;
        import org.apache.ibatis.annotations.Param;
        import org.apache.ibatis.annotations.Update;

        import java.util.Date;

/**
 * <p>
 * 自费叫车订单 Mapper 接口
 * </p>
 *
 * @author wangshuo
 * @since 2019-09-26
 */
public interface OaCOrderPersonalMapper extends BaseMapper<OaCOrderPersonal> {
    @Update("update " +
            "oa_c_order_personal  SET  " +
            "passenger_name =#{passengerName},  " +
            "passenger_phone_suffix =#{phoneSuffix},  " +
            "passenger_phone =#{phone}," +
            "update_user = #{passengerName},  " +
            "update_time = #{date}" +
            "where personal_id=#{personalId}")
    int updatePassenger(@Param("passengerName")String passengerName,
                        @Param("phoneSuffix")String phoneSuffix,
                        @Param("phone")String phone,
                        @Param("date") Date date,
                        @Param("personalId")String personalId);
}
